<?php 
session_cache_expire(999999999);
if(!isset($_SESSION)) { 
	session_start(); 
}
$lang = $_SESSION['lang'];
if (empty($lang) || $lang == "EN") {
	include "../../value/value_en.php";
}else if($lang == "VN") {
	include "../../value/value_vn.php";
}else {
	include "../../value/value_kr.php";
}


?>


<div class="title2">
			    	<!--  <span style="float:left"><?php echo $l_company_name?> : ELisoft</span>
			        <span style="float:right">
			        	<?php 
			        		if($_REQUEST['cbcus']!=""){
			        			?>
			        			<?php echo $l_tenkhachhanggiaodich;?> : <?php echo $_REQUEST['cbcus'];?>
			        			<?php 
			        		}
			        	?>
			        </span>-->
			    </div>
			    <div style="clear:both"></div>
	        	<div style="position:relative">
			        	<table cellpadding="0" cellspacing="1" width="100%" border="0" class="ftable">
				            <tr>
				                <th style=""><?=$l_no?></th>
				                <th style="width: 10%;min-width: 100px"><?=$l_ngaythangnam?></th>
				                <th style="width: 18%;min-width: 170px"><?=$l_company_name?></th>
				                <th style="width: 35%;min-width: 220px"><?=$l_product_item?></th>
				                <th style="display: none;"><?=$l_quantity?></th>
				                <th style="width: 8%;min-width: 80px"><?=$l_Supply_price?></th>
				                <th style="width: 8%;min-width: 80px"><?=$l_vat?></th>
				                <th style="width: 8%;min-width: 80px"><?=$l_amount?></th>
				                <th style="width: 10%;min-width: 100px"><?=$l_approve_date?></th>
				                <th style="width: 10%;min-width: 120px"></th>
				            </tr>
				           
				            <tr class="coltr2" style="font-weight:bold;font-size:14px;">
				                 <td colspan="4"  style="padding: 10px;">
									<?php 
										if($_SESSION['loaitimkiem']=="ngay"){
											?>
											<?php echo $l_ngay;?> : <font color="red"><?php if(isset($thoigian)) echo $thoigian; ?></font>  -  <?php echo $type;?> : <font color="blue"><?php if(isset($dem)) echo number_format($dem);?></font>
											<?php 
										
										}else{
											?>
											<?php echo $l_month;?> : <font color="red"><?php if(isset($thoigian))echo $thoigian; ?></font>  -  <?php echo $type;?> : <font color="blue"><?php if(isset($dem)) echo number_format($dem);?></font>											 
											<?php 
										}
									?>
								</td>
				                <td style="display: none;"></td>
				                <td style="text-align:right;"><?php if(isset($tonggiacungcap)) echo number_format($tonggiacungcap);?></td>
				                <td style="text-align:right;"><?php if(isset($tongthue)) echo number_format($tongthue);?></td>
				                <td style="text-align:right;"><?php if(isset($tongtien)) echo number_format($tongtien);?></td>
				                <td></td>
				            </tr>
				            <tr style="font-weight:bold;font-size:15px;color:green;">
				                <td colspan="4" style="padding: 10px;"><?php echo $l_tongdon?></td>
				                <td style="display: none;"></td>
				                <td style="text-align:right;"><?php if(isset($stonggiacungcap)) echo number_format($stonggiacungcap);?></td>
				                <td style="text-align:right;"><?php if(isset($stongthue)) echo number_format($stongthue);?></td>
				                <td style="text-align:right;"><?php if(isset($stongtien)) echo number_format($stongtien);?></td>
				                <td style="text-align:right;"></td>
				                <td style="text-align:right;"></td>
				                <td></td>
				            </tr>
				        </table>
        		</div>
        		<?php 
        		if(isset($arr) && count($arr)>0){
        			?>
        			<div class="fbox2"><input type="button" value="<?=$l_print?>" class="btnupbg btnupload" style="background: #4f81bd;"/></div>
        			<?php 
        		}
        		?>